package com.ymttest.database.sqlwapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.BoudedOutStoreTracking;
import com.ymttest.utils.EnvSetup;

public class BoudedOutStoreTrackingWapper {
	SqlManager manage;

	public BoudedOutStoreTrackingWapper() {
		manage = new SqlManager("xlobo" + EnvSetup.getEnv());
	}

	/**
	 * 获取对应boudedOutStore List
	 * 
	 * @param opType
	 * @return boudedOutStore List,如果没有返回null
	 * @throws InterruptedException
	 */
	public List<BoudedOutStoreTracking> selectByOpType(String opType) throws InterruptedException {
		String imgurl = null;
		Map<String, String> map = new HashMap<String, String>();
		map.put("opType", opType);
		Thread.sleep(1000);
		List<BoudedOutStoreTracking> boudedOutStore = manage.getSelectResults(
				"com.ymttest.database.mapping.BoudedOutStoreTrackingMapper.selectByOpType", map);
		// if(localReturnImage.size()>0){
		// imgurl=localReturnImage.get(0).getImgurl();
		// }
		// manage.close();
		return boudedOutStore;
	}

	public static void main(String[] args) {
		List<BoudedOutStoreTracking> boudedOutStore = new ArrayList<BoudedOutStoreTracking>();
		try {
			boudedOutStore = new BoudedOutStoreTrackingWapper().selectByOpType("wms调用xlobo发货反馈接口");
		} catch (InterruptedException e) {

			e.printStackTrace();
		}
		Logger.debug(boudedOutStore);
		Logger.debug(boudedOutStore.size());
	}

}
